<?php
namespace PsiFramework\Classes\Util\Parameters;

import("Classes.Util.Parameters.ParametersInterface.IParameters");

use \PsiFramework\Classes\Util\Parameters\ParametersInterface\IParameters;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The Parameters class is the generic class to manage parameters
 *
 * @package Util.Parameters
 */
class Parameters implements IParameters
{

    protected /*mixed[]*/ $_parameters ;

    public function __construct(/*array*/ $parameters=null)
    {
        $this->_parameters = $parameters ;
    }

    public function setParameters(/*array*/ $parameters)
    {
        $this->_parameters = $parameters ;
    }

    public function getParameter(/*string*/ $paramName)
    {
        $value = null ;
        if (isset($this->_parameters[$paramName])) {
            $value = $this->_parameters[$paramName] ;
        }
        return $value ;
    }

    public function getParameters()
    {
        return $this->_parameters ;
    }

}
